package org.btik.light.server.platform.common.api.service;

import org.btik.light.meta.DevMo;
import org.btik.light.meta.base.Command;
import org.btik.light.meta.base.video.VideoChannelType;
import org.btik.light.server.platform.common.api.bean.dev.manage.DevProp;

import java.util.Collection;

public interface OperationServer {

    void sendCmdOrMsg( Command webCmd);

    void sendAsyncCmdOrMsg( Command webCmd);

    Collection<DevMo> listAtNode(String node);

    Collection<DevMo> listCameraAtNode(String node);

    boolean isOnLine(String sn);

    boolean attachVideoChannel(VideoChannelType videoChannelType, int channelIndex, String devSn);

    boolean updateProp(DevProp devProp);

    DevMo getDevMo(String sn);
}
